<?php
class Default_Models_Mongo_LinkModel extends Shanty_Mongo_Document{
	protected static $_db = "call_link";
	protected static $_collection = "links";//tên document
	
	public function getAllLink(){
		$link_list = $this->all()->sort(array('_id'	=> -1));
		return $link_list;
	}
	public function getLinkInfo($id){
		if (!$id){
			return false;
		}
		$link_info = $this->find($id);
		return $link_info;
	}
}